#include "object.h"
#include <stdarg.h>

#define CONSOLE_SIZE 300
class console
{
    public:
        void printf(const char *format, ...);
        void DrawBuffer_NoScrollExt(int x, int y, word *buf);
        void setSize(int w, int h);
        void setMode(int m, int r);
        void scroll(int x, int y);
        void clear();
    private:
        char buffer[CONSOLE_SIZE][80];
        int printLine;
        int scrollX, scrollY;
        int displayW, displayH;
        int scrollMode;
        int renderMode;
};


void SLX_S1DebugInfo();
void SLX_CheckSelectText();

void SLX_UpdateMouse(int mousex, int mousey);
void SLX_UpdateMouseClick(bool left, bool right);

object *SLX_FindObject(int x, int y);
void printObject(object *obj, console *c);
char *getBits(int n);
